import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    // 首页
    {
      path: '/',
      name: 'indexPage',
      component: require('@/view/Index/Index').default
    },
    // 操作页
    {
      path: '/preview',
      name: 'previewPage',
      component: require('@/view/Preview/Index2').default
    },
    // 放大页
    {
      path: '/big',
      name: 'bigPage',
      component: require('@/view/Preview/Big').default
    },
    {
      path: '*',
      redirect: '/'
    }
  ]
})
